<?php


namespace app\api\controller\pc;


use app\api\controller\BaseController;
use app\services\pc\ConfigurationServices;
use think\facade\App;

class ConfigurationController extends BaseController
{
    public function __construct(App $app,ConfigurationServices  $service)
    {
        parent::__construct($app);
        $this ->services = $service;
    }
    /**
     * 获取信息配置
     */
    public function index(){
        $where = $this->request->postMore([
            ['website_id',$this->website],
        ]);
        return app()->make('json')->successful($this->services->gerConfiguration($where));
    }
}